package com.hx.reflect;


import com.hx.reflect.bean.Student;

/**
 * @author jxlgcmh
 * @create 2019-05-11 11:22
 */
public class Demo5 {
    public static void main(String[] args) throws IllegalAccessException, InstantiationException {
        Class<Student> s1 = Student.class;
		/*
			创建运行时类对象，下面方法调用的空参构造器
			类必须有空参构造器，权限修饰符通常为public
		 */
        Student student = s1.newInstance();
        System.out.println(student);

    }
}
